Optimal. Leaf size=385 \[ -\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}}-\frac {2 (a-3 b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a^2 b f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {8 (a-2 b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f}+\frac {(3 a-8 b) \coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^3 b f}-\frac {8 (a-2 b) E\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {(3 a-8 b) F\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {8 (a-2 b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 a^4 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.38, antiderivative size = 385, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {3275, 479, 593,
597, 545, 429, 506, 422} \begin {gather*} \frac {(3 a-8 b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} F\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right )}{3 a^4 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {8 (a-2 b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} E\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right )}{3 a^4 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {8 (a-2 b) \tanh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f}-\frac {8 (a-2 b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f}+\frac {(3 a-8 b) \coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^3 b f}-\frac {2 (a-3 b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a^2 b f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 422
Rule 429
Rule 479
Rule 506
Rule 545
Rule 593
Rule 597
Rule 3275
Rubi steps
\begin {align*} \int \frac {\coth ^4(e+f x)}{\left (a+b \sinh ^2(e+f x)\right )^{5/2}} \, dx &=\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {\left (1+x^2\right )^{3/2}}{x^4 \left (a+b x^2\right )^{5/2}} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=-\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}}-\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {3 (a-2 b)+(2 a-5 b) x^2}{x^4 \sqrt {1+x^2} \left (a+b x^2\right )^{3/2}} \, dx,x,\sinh (e+f x)\right )}{3 a b f}\\ &=-\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}}-\frac {2 (a-3 b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a^2 b f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {3 (3 a-8 b) (a-b)+6 (a-3 b) (a-b) x^2}{x^4 \sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 a^2 (a-b) b f}\\ &=-\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}}-\frac {2 (a-3 b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a^2 b f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {(3 a-8 b) \coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^3 b f}+\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {24 (a-2 b) (a-b) b+3 (3 a-8 b) (a-b) b x^2}{x^2 \sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{9 a^3 (a-b) b f}\\ &=-\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}}-\frac {2 (a-3 b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a^2 b f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {8 (a-2 b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f}+\frac {(3 a-8 b) \coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^3 b f}-\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {-3 a (3 a-8 b) (a-b) b-24 (a-2 b) (a-b) b^2 x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{9 a^4 (a-b) b f}\\ &=-\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}}-\frac {2 (a-3 b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a^2 b f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {8 (a-2 b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f}+\frac {(3 a-8 b) \coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^3 b f}+\frac {\left ((3 a-8 b) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 a^3 f}+\frac {\left (8 (a-2 b) b \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 a^4 f}\\ &=-\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}}-\frac {2 (a-3 b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a^2 b f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {8 (a-2 b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f}+\frac {(3 a-8 b) \coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^3 b f}+\frac {(3 a-8 b) F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {8 (a-2 b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 a^4 f}-\frac {\left (8 (a-2 b) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{\left (1+x^2\right )^{3/2}} \, dx,x,\sinh (e+f x)\right )}{3 a^4 f}\\ &=-\frac {(a-b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a b f \left (a+b \sinh ^2(e+f x)\right )^{3/2}}-\frac {2 (a-3 b) \coth (e+f x) \text {csch}^2(e+f x)}{3 a^2 b f \sqrt {a+b \sinh ^2(e+f x)}}-\frac {8 (a-2 b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f}+\frac {(3 a-8 b) \coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^3 b f}-\frac {8 (a-2 b) E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {(3 a-8 b) F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^4 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {8 (a-2 b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 a^4 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 2.39, size = 247, normalized size = 0.64 \begin {gather*} -\frac {i \left (\frac {i b \left (8 a^3-63 a^2 b+92 a b^2-40 b^3-2 \left (8 a^3-38 a^2 b+63 a b^2-30 b^3\right ) \cosh (2 (e+f x))-b \left (13 a^2-36 a b+24 b^2\right ) \cosh (4 (e+f x))-2 a b^2 \cosh (6 (e+f x))+4 b^3 \cosh (6 (e+f x))\right ) \coth (e+f x) \text {csch}^2(e+f x)}{\sqrt {2}}+2 a^2 b \left (\frac {2 a-b+b \cosh (2 (e+f x))}{a}\right )^{3/2} \left (8 (a-2 b) E\left (i (e+f x)\left |\frac {b}{a}\right .\right )+(-5 a+8 b) F\left (i (e+f x)\left |\frac {b}{a}\right .\right )\right )\right )}{6 a^4 b f (2 a-b+b \cosh (2 (e+f x)))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(922\) vs.
\(2(433)=866\).
time = 2.94, size = 923, normalized size = 2.40
method | result | size |
default | \(\text {Expression too large to display}\) | \(923\) |
risch | \(\text {Expression too large to display}\) | \(1124572\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 13823 vs.
\(2 (381) = 762\).
time = 0.41, size = 13823, normalized size = 35.90 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {coth}\left (e+f\,x\right )}^4}{{\left (b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________